package light.head.dao.sys;

import java.util.List;

import light.head.framework.base.BaseDAO;
import light.head.model.Post;

import org.springframework.stereotype.Service;
@Service
public class PostDAO extends BaseDAO<Post, Integer>{
	private static final String sql_findUc = "FROM Post p WHERE p.uc = ?";

	public List<Post> findUc(Integer code){
		if(code == null)return null; 
		List<Post> p = find(sql_findUc, code);
		return p;
	}
}
